#ifndef MANAGER_H
#define MANAGER_H

#include <QtGui/QMainWindow>
#include <QDomDocument>
#include <QtGui>
#include <QApplication>
#include <QPlastiqueStyle>
#include <qfile.h>
#include <QDesktopServices>
#include "order.h"
#include "ui_manager.h"

class QSqlTableModel;
extern QSqlTableModel *cust_model;

struct MobileOperator
{
  	QString name;
   	QString code;
  	QString web;
};

struct SPrinter
{
  	QString name;
   	QString format;
};

class Manager : public QMainWindow
{
    Q_OBJECT

public:
	Manager(QWidget *parent = 0);
    ~Manager();
public slots:
	void SetOrderSection();
	
	void SetCustomerPage();
	void SetSettingsPage();
	void SetTrashPage();
	int LoadHelp();
	void DeleteOrder();
	void RestoreOrder();
	void SetCustomerTrashPage();
	void DeleteCustomer();
	void RestoreCustomer();
private:
	Ui::manClass ui;
	QSortFilterProxyModel *proxyModel;
public:
	static QDate cur_date;

	static QString manager_name;
	static QString manager_city;
	static QString manager_press;
	static QString manager_address;
	static QString manager_fone;
	static QString manager_fax;
	static QString manager_mail;
	
	static QDir order_path;
	static QDir data_path;
	
	static QStringList pantone;
	static QStringList papers;
	static QStringList last_orders;
	static QList<CPaper> formats;
	static QList<SPrinter> printers;
	static QList<MobileOperator> operators;
};

#endif // MANAGER_H
